"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function fisherYates(arr) {
    let i = arr.length;
    if (i === 0)
        return;
    while (--i) {
        let j = Math.floor(Math.random() * (i + 1));
        let tempI = arr[i];
        let tempJ = arr[j];
        arr[i] = tempJ;
        arr[j] = tempI;
    }
}
exports.default = fisherYates;
